package com.itheima.service.impl;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil;
import com.itheima.common.R;
import com.itheima.common.TokenHolder;
import com.itheima.dto.EmployeeDto.LoginDto;
import com.itheima.mapper.EmployeeMapper;
import com.itheima.service.EmployeeService;
import com.itheima.utils.JwtUtils;
import com.itheima.vo.EmployeeVo.LoginVo;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author 小帅蓝
 * @Date 2022/6/12 13:38
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    private EmployeeMapper employeeMapper;

    @Override
    public LoginVo login(LoginDto dto) {
        return employeeMapper.login(dto.getUsername(), dto.getPassword());
    }

}
